import {MutationTree} from 'vuex';
import * as types from '@/store/mutation-types';

export default class ShareControllerStore {
    public static state: any = {
        show: false,
        param: {},
    };

    public static mutations: MutationTree<any> = {
        [types.SHARE_CONTROLLER_TOGGLE](state: any, param: any) {
            state = Object.assign(state, {show: !state.show, param});
        },
    };
}
